package com.moon.mybatisplus.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties("xxl.job")
@Getter
@Setter
public class XxlJobProperties {

    private Admin admin;
    private String accessToken;
    private Executor executor;

    @Setter
    @Getter
    public static class Admin {
        private String addresses;
    }

    @Setter
    @Getter
    public static class Executor {
        private String appName;
        private String logPath;
        private Integer logRetentionDays;
        private String address;
        private String ip;
        private Integer port;
    }
}
